import Main from '@/views/main.vue';

export default [{
  path: '/',
  component: Main,
  children: [
    {path: 'index', name: 'homeIndex', meta: {title: '首页'}, component: (resolve)=>require(['@/views/home/index.vue'], resolve)}
  ]
}, {
  path: '/user',
  component: Main,
  children: [
    {path: 'index', name: 'userIndex', meta: {title: '会员管理'}, component: (resolve)=>require(['@/views/user/index.vue'], resolve)},
    {path: 'update', name: 'userUpdate', meta: {title: '修改会员'}, component: (resolve)=>require(['@/views/user/update.vue'], resolve)},
    {path: 'layer', name: 'userLayer', meta: {title: '会员层次树'}, component: (resolve)=>require(['@/views/user/layer.vue'], resolve)},
    {path: 'deposit', name: 'userDeposit', meta: {title: '会员充值'}, component: (resolve)=>require(['@/views/user/deposit.vue'], resolve)},

    {path: 'message', name: 'userMessageIndex', meta: {title: '留言管理'}, component: (resolve)=>require(['@/views/user/message/index.vue'], resolve)},
		
		{path: 'service/apply', name: 'userServiceApply', meta: {title: '服务中心申请'}, component: (resolve)=>require(['@/views/user/service/apply.vue'], resolve)},
		{path: 'service/index', name: 'userServiceIndex', meta: {title: '区域代表列表'}, component: (resolve)=>require(['@/views/user/service/index.vue'], resolve)},

		{path: 'wallet/goods/log', name: 'userWalletGoodsLog', meta: {title: '货总日志'}, component: (resolve)=>require(['@/views/user/wallet/goods/log.vue'], resolve)},
    {path: 'wallet/goods/sell', name: 'userWalletGoodsSell', meta: {title: '货卖出管理'}, component: (resolve)=>require(['@/views/user/wallet/goods/sell.vue'], resolve)},

		{path: 'wallet/coupon/log', name: 'userWalletCouponLog', meta: {title: '购物券总日志'}, component: (resolve)=>require(['@/views/user/wallet/coupon/log.vue'], resolve)},
		
		{path: 'wallet/activation/log', name: 'userWalletActivationLog', meta: {title: '激活码总日志'}, component: (resolve)=>require(['@/views/user/wallet/activation/log.vue'], resolve)},

		{path: 'wallet/tourismIntegration/log', name: 'userWalletTourismIntegrationLog', meta: {title: '旅游积分总日志'}, component: (resolve)=>require(['@/views/user/wallet/tourismIntegration/log.vue'], resolve)},

		{path: 'wallet/declaration/log', name: 'userWalletDeclarationLog', meta: {title: '报单币总日志'}, component: (resolve)=>require(['@/views/user/wallet/declaration/log.vue'], resolve)},

		{path: 'achievement/statistics', name: 'userAchievementStatistics', meta: {title: '会员业绩统计'}, component: (resolve)=>require(['@/views/user/achievement/statistics.vue'], resolve)},
		{path: 'achievement/log', name: 'userAchievementLog', meta: {title: '会员业绩日志'}, component: (resolve)=>require(['@/views/user/achievement/log.vue'], resolve)}
  ]
}, {
  path: '/admin',
  component: Main,
	children: [
		{path: 'index', name: 'adminIndex', meta: {title: '管理员列表'}, component: (resolve)=>require(['@/views/admin/index.vue'], resolve)}
	]
}, {
  path: '/system',
  component: Main,
  children: [
  	{path: 'index', name: 'systemIndex', meta: {title: '系统设置'}, component: (resolve)=>require(['@/views/system/index.vue'], resolve)}
  ]
}, {
  path: '/notice',
  component: Main,
  children: [
  	{path: 'index', name: 'noticeIndex', meta: {title: '公告管理'}, component: (resolve)=>require(['@/views/notice/index.vue'], resolve)}
  ]
}, {
  path: '/login',
  name: 'login',
  meta: {
    title: '登陆'
  },
  component: (resolve) => require(['@/views/login.vue'], resolve)
}];
